﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Phoenix.Backend.Login" EnableEventValidation="true"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Login Administrator</title>
    <link href="http://localhost:1109/Content/Backend/css/blue/screen.css" rel="stylesheet" type="text/css" />
</head>
<body class="login">
	<!-- Begin login window -->
	<div id="login_wrapper">
		<div id="login_top_window">
			<img src="http://localhost:1109/Content/Backend/images/blue/top_login_window.png" alt="top window"/>
		</div>
		
		<!-- Begin content -->
		<div id="login_body_window">
			<div class="inner">
				<%--<img src="../Content/Backend/images/login_logo.png" alt="logo"/>--%><h2>Phoenix Trans</h2>
				<form method="get" id="form_login" name="form_login" runat="server">
					<p>
                        <asp:TextBox ID="txtUserName" runat="server" ToolTip="Nhập tên tài khoản" placeholder="Tài khoản" style="width:285px"></asp:TextBox>
					</p>
					<p>
						<asp:TextBox ID="txtPass" TextMode="Password" runat="server" ToolTip="Nhập mật khẩu" placeholder="Mật khẩu" style="width:285px"></asp:TextBox>
					</p>
					<p style="margin-top:50px">
                        <asp:Button ID="btnLogin" Text="Đăng nhập" runat="server" CssClass="Login" style="margin-right:5px" 
                            OnClientClick="return validate_Login()" onclick="btnLogin_Click"/>
                        <asp:CheckBox ID="chbRemember" runat="server" Text="Nhớ mật khẩu"/>
						
					</p>
                    <script type="text/javascript">
                        function validate_Login() {
                            var txtUserName = document.getElementById("<%=txtUserName.ClientID%>").value;
                            if (txtUserName == null || txtUserName == "") {
                                alert("Tên tài khoản không để trống!");
                                document.getElementById("<%=txtUserName.ClientID%>").focus();
                                return false;
                            }
                            var txtPass = document.getElementById("<%=txtPass.ClientID%>").value;
                            if (txtPass == null || txtPass == "") {
                                alert("Mật khẩu không để trống!");
                                document.getElementById("<%=txtPass.ClientID%>").focus();
                                return false;
                            }
                            return true;
                        }
                    </script>
				</form>
			</div>
		</div>
        
		<!-- End content -->
		
		<div id="login_footer_window">
			<img src="http://localhost:1109/Content/Backend/images/blue/footer_login_window.png" alt="footer window"/>
		</div>
		<div id="login_reflect">
			<img src="http://localhost:1109/Content/Backend/images/blue/reflect.png" alt="window reflect"/>
		</div>
	</div>
	<!-- End login window -->
</body>
</html>
